package helloworld.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;


public class TestSpringAOP {

	public static void main(String[] args) {

		ApplicationContext ac = new FileSystemXmlApplicationContext(
				"/spring/helloworld/aop/applicationContext.xml");

		IStudent person = (IStudent) ac.getBean("student");
		System.out.println("============= 可以加入 =============");
		person.addStudent("agate");
		System.out.println("============= 不可加入 =============");
		person.addStudent("somebody");
	}

}
